package cn.zysuyuan.item.service;

import cn.zysuyuan.common.exception.CommonException;
import cn.zysuyuan.item.entity.Permission;

import java.util.List;
import java.util.Map;

/**
 * @author flypig
 * @version 1.0
 * @date 2020-03-17 11:08
 */
public interface PermissionService {
    void save(Map<String, Object> map) throws Exception;

    List<Permission> findAll(Map<String,Object> map);

    Map<String, Object> findById(String id);

    void update(Map<String, Object> map) throws Exception;

    void deleteById(String id) throws CommonException;
}
